<?php



class CalendarMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CalendarMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('calendar');
		$tMap->setPhpName('Calendar');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('SEQ_ID', 'SeqId', 'string', CreoleTypes::VARCHAR, false, 128);

		$tMap->addColumn('STATUS_ID', 'StatusId', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PERSON_ID', 'PersonId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('USER_ROLES', 'UserRoles', 'string', CreoleTypes::VARCHAR, false, 512);

		$tMap->addColumn('IS_PERSONAL', 'IsPersonal', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('TITLE', 'Title', 'string', CreoleTypes::VARCHAR, false, 512);

		$tMap->addColumn('GEO_NAME_ID', 'GeoNameId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('POINT_LATITUDE', 'PointLatitude', 'double', CreoleTypes::FLOAT, false, null);

		$tMap->addColumn('POINT_LONGITUDE', 'PointLongitude', 'double', CreoleTypes::FLOAT, false, null);

		$tMap->addColumn('ADDRESS', 'Address', 'string', CreoleTypes::VARCHAR, false, 512);

		$tMap->addColumn('DURATION', 'Duration', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DURATION_METRIC', 'DurationMetric', 'string', CreoleTypes::VARCHAR, false, 1);

		$tMap->addColumn('TIMES_TO_REPEAT', 'TimesToRepeat', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('START_AT', 'StartAt', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('ENDS_AT', 'EndsAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 